<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
		<title>维护数据字典</title>
		<script type="text/javascript" src="../script/common.js"></script>
		<script type="text/javascript">
			var category;
			function load() {
				var categoryName = unesc(getPara("categoryName"));
				var code = getPara("code");
				category = getPara("category");
	
				$('legendtxt').innerHTML = "维护数据字典 " + categoryName + " 的数据项";
				DWR.call("dictService.getItem", category, code, function(dict) {
					Common.setValues(dictform, dict);
				})
			}
	
			function onSave() {
				if (!checkForm(dictform)) return;
				var item = Common.getValues(dictform);
				DWR.call("dictService.saveDict", category, item.code, item.text, item.english, item.iconUrl, function(result) {
					Common.clearDict(category);
					dialogBackValue(true)
				})
			}
		</script>
	</head>
	<body onload="load()">
		<form id="dictform" name="dictform">
			<table width="96%" border="0" cellspacing="0" cellpadding="0" align="center">
				<tr>
					<td align="center">
						<fieldset>
							<legend id="legendtxt">维护数据字典数据项</legend>
							<table width="100%" border="0" cellspacing="0" cellpadding="0" id="forms">
								<tr>
									<td align="center"><b>代 码</b></td>
									<td><input type="text" name="code" disabled maxlength="200"></td>
								</tr>
								<tr>
									<td align="center"><b>文 本</b></td>
									<td><input type="text" name="text" maxlength="200" onblur="checkV(this,'',true)"> <span class="des">*</span></td>
								</tr>
								<tr>
									<td align="center"><b>english</b></td>
									<td><input type="text" name="english" maxlength="200"></td>
								</tr>
								<tr>
									<td align="center"><b>图 标</b></td>
									<td><input type="text" name="iconUrl" maxlength="200"></td>
								</tr>
							</table>
						</fieldset>
					</td>
				</tr>
			</table>
		</form>
	</body>
</html>